package top.lyjwn.todo.aop.token;

import java.time.LocalDateTime;

/**
 * 登录的实际数据
 */
public class LoginData implements Login {


    private String account;
    private String privateKey;

    private int type;
    private String platform;
    private String openid;
    private String unionid;
    private String userId;
    private LocalDateTime loginTime;


    public LoginData() {
    }

    public LoginData(String account, String privateKey, int type, String platform, String openid, String unionid, String userId, LocalDateTime loginTime) {
        this.account = account;
        this.privateKey = privateKey;
        this.type = type;
        this.platform = platform;
        this.openid = openid;
        this.unionid = unionid;
        this.userId = userId;
        this.loginTime = loginTime;
    }

    @Override
    public String getAccount() {
        return account;
    }

    public void setAccount(String account) {
        this.account = account;
    }

    public String getPrivateKey() {
        return privateKey;
    }

    public void setPrivateKey(String privateKey) {
        this.privateKey = privateKey;
    }

    public String getPlatform() {
        return platform;
    }

    public void setPlatform(String platform) {
        this.platform = platform;
    }

    public String getOpenid() {
        return openid;
    }

    public void setOpenid(String openid) {
        this.openid = openid;
    }

    public String getUnionid() {
        return unionid;
    }

    public void setUnionid(String unionid) {
        this.unionid = unionid;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public LocalDateTime getLoginTime() {
        return loginTime;
    }

    public void setLoginTime(LocalDateTime loginTime) {
        this.loginTime = loginTime;
    }

    public Integer getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }
}
